/**
 * @auther tedu
 * @date 2023/7/8 16:55
 */
package cn.tedu.hospital.admin.server.doctor.controller;

import cn.tedu.hospital.admin.server.doctor.pojo.param.DoctorTypeAddNewParam;
import cn.tedu.hospital.admin.server.doctor.servic.IDoctorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 处理标签相关请求的控制器类
 *
 */
@Slf4j
@RestController
@RequestMapping("/content/doctor")
public class DoctorController {
    @Autowired
    IDoctorService doctorService;
    public DoctorController() {
        log.info("创建控制器对象：DoctorController");
    }

    @GetMapping("/add-new")
    public String addNew(DoctorTypeAddNewParam doctorTypeAddNewParam) {
        log.debug("开始处理【新增标签类别】的请求，参数：{}", doctorTypeAddNewParam);
        doctorService.addNew(doctorTypeAddNewParam);
        return "OK";
    }
}